@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: 'Roboto Mono', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#game-container {
    text-align: center;
    background-color: #2a2a2a;
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

h1 {
    font-size: 2.5rem;
    color: #00ff9d;
    margin-bottom: 20px;
}

#target-number {
    font-weight: 700;
}

#number-input {
    width: 200px;
    padding: 15px;
    font-size: 2rem;
    text-align: center;
    border: 2px solid #00ff9d;
    background-color: #1a1a1a;
    color: #f0f0f0;
    border-radius: 10px;
    outline: none;
    transition: box-shadow 0.2s;
}

#number-input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.7);
}

/* Hides arrows from number input */
#number-input::-webkit-outer-spin-button,
#number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#number-input[type=number] {
    -moz-appearance: textfield;
}

.money-display {
    font-size: 1.8rem;
    margin-top: 30px;
    color: #ffc400;
}

.strikes-display {
    font-size: 1.4rem; /* Slightly smaller than money display */
    margin-top: 10px;
    color: #ff8c00; /* A different warm color for strikes */
    font-weight: 700;
}

#cashout-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    color: #1a1a1a;
    background-color: #ff4d4d;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#cashout-button:hover {
    background-color: #ff2d2d;
    transform: translateY(-2px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

#error-overlay {
    background-color: rgba(255, 0, 0, 0.4);
}

#cashout-overlay {
    background-color: rgba(0, 0, 0, 0.95);
}

.overlay.visible {
    opacity: 1;
}